package com.wf.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wf.domain.User;
import com.wf.dto.LoginDTO;
import com.wf.dto.UserDTO;
import com.wf.exception.ApartmentException;

import java.util.List;

/**
* @author mpk16
* @description 针对表【user(用户信息表)】的数据库操作Service
* @createDate 2024-08-03 13:39:49
*/
public interface UserService extends IService<User> {

    User login(LoginDTO loginDTO);

    User loginByWx(String openid);
    List<UserDTO> selectUser(String username, Integer roleId);

    boolean updatePhoneOrEmail(User user) throws ApartmentException;
}
